var infoTemplatesArr = [];


//基础图层id
// //0514
var ntID = 163
var treeID = 288
var riverID = 236

// var roadLayerId = 302

//0522
// var ntID = 163
// var treeID = 300
// var riverID = 238

var roadLayerId = 315

var quxianID=311
var jiedaoID=312

//业务图层id
var lsfmID = 3
var jjID = 0
var parkID = 2
var bzfID = 1

var localIP = "http://172.18.106.9:6080";

var baseMapLayerUrl = localIP + "/arcgis/rest/services/SJJ_ALL0522/MapServer";
var mainBaseMapLayerUrl = localIP + "/arcgis/rest/services/SJJ_ALL0514/MapServer";
var ywLayerUrl = localIP + "/arcgis/rest/services/SJJ_YEWU0508/MapServer";

var quxianLayerUrl = baseMapLayerUrl+"/"+quxianID;
var jiedaoLayerUrl = baseMapLayerUrl+"/"+jiedaoID;
// var jiedaoLayerUrl = localIP + "/arcgis/rest/services/SJJ_ALL0320/MapServer/295";

var changeDetectionlayerUrl = localIP + "/arcgis/rest/services/CHANGEDETECTION/MapServer";
var geometryServiceUrl = localIP + "/arcgis/rest/services/Utilities/Geometry/GeometryServer";

var districtNameField = "县区名称"
var streetNameField = "乡镇名称"

var baseMapUrl = oneMapServerIP+"/OneMapServer/rest/services/BaseMap/MapServer?token=" + GLOBAL_TOKEN;




var D_LAYERS = [{
    layerId: "SJJlayer",
    visible: false,
    opacity: 0.6,
    // url: localIP+"/arcgis/rest/services/SJJ_ALL/MapServer",
    // url: localIP + "/arcgis/rest/services/SJJ_ALL0320/MapServer",
    url: localIP + "/arcgis/rest/services/SJJ_ALL0522/MapServer",
    zTreeDivId: "layerList",
    zTreeSearchInputId: "key",
},
{
    layerId: "themelayer",
    visible: false,
    opacity: 0.6,
    url: localIP + "/arcgis/rest/services/SJJ_YEWU/MapServer",
    zTreeDivId: "themeLayerList",
    zTreeSearchInputId: "themeKey",
},
{
    layerId: "otherLayer",
    visible: false,
    opacity: 0.6,
    url: localIP + "/arcgis/rest/services/CHANGEDETECTION/MapServer",
    zTreeDivId: "otherLayerList",
    zTreeSearchInputId: "otherKey",
},
];


//底图加载用的服务
var BASE_LAYERS = [{
    layerId: "base_zhengwu",
    name: "政务地图",
    type:"base",
    visible: false,
    url: oneMapServerIP+"/OneMapServer/rest/services/BaseMap/MapServer?token=" + GLOBAL_TOKEN
},{
    layerId: "base_anse",
    name: "暗色地图",
    type:"anse",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/shmap_as2/MapServer?token=" + GLOBAL_TOKEN
},{
    layerId: "base_2020",
    name: "2020年影像",
    type:"air",
    visible: false,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air/MapServer?token=" + GLOBAL_TOKEN
},{
    layerId: "base_yuanqu",
    name: "园区分布",
    type: "yuanqu",
    visible: false,
    url: "http://10.141.72.22:6080/arcgis/rest/services/LG_GARDEN/MapServer/0",
  },{
    layerId: "base_2019",
    name: "2019年影像",
    type:"air",
    visible: false,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2019/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "base_2018",
    name: "2018年影像",
    type:"air",
    visible: false,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2018/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "base_2017",
    name: "2017年影像",
    type:"air",
    visible: false,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2017/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "base_2016",
    name: "2016年影像",
    type:"air",
    visible: false,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2016/MapServer?token=" + GLOBAL_TOKEN
}]


//影像对比分析用的服务
var T_LAYERS = [{
    layerId: "zhengwu",
    type:"base",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/BaseMap/MapServer?token=" + GLOBAL_TOKEN
},{
    layerId: "anse",
    type:"anse",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/shmap_as2/MapServer?token=" + GLOBAL_TOKEN
},{
    layerId: "2020",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air/MapServer?token=" + GLOBAL_TOKEN
},{
    layerId: "2019",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2019/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "2018",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2018/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "2017",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2017/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "2016",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2016/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "2015",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2015S/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "2014",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2014S/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "2013",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2013S/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "2012",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2012X/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "2011",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2011/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "2010",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2010/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "2008",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2008/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "2006",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air2006/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "1994",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air1994/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "1979",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air1979/MapServer?token=" + GLOBAL_TOKEN
}, {
    layerId: "1948",
    type:"air",
    visible: true,
    url: oneMapServerIP+"/OneMapServer/rest/services/Air1948/MapServer?token=" + GLOBAL_TOKEN
}]

var satLayerUrls = [{
    "1801": oneMapServerIP+"/OneMapServer/rest/services/Sat_GJ1/MapServer"
},
{
    "1802": oneMapServerIP+"/OneMapServer/rest/services/Sat_GJ12/MapServer"
},
{
    "1803": oneMapServerIP+"/OneMapServer/rest/services/Sat_GJ13/MapServer"
},
{
    "1804": oneMapServerIP+"/OneMapServer/rest/services/Sat_GJ14/MapServer"
}
]

var changeDetectionLayerUrls = [{
    "jd1": localIP + "/arcgis/rest/services/CHANGEDETECTION/MapServer"
},
{
    "jd2": localIP + "/arcgis/rest/services/CHANGEDETECTION2/MapServer"
}
]